﻿#ifndef CMDLINECHARTCURVE2DPLOTORREMOVEALLGRAPHS_H
#define CMDLINECHARTCURVE2DPLOTORREMOVEALLGRAPHS_H

#include "CommandManager/CommandBase.h"

namespace PostCommand
{
    /// @brief 后处理保存图像命令
    class CmdLineChartCurve2DPlotorRemoveAllGraphs : public CommandManager::CommandBase
    {
        Q_OBJECT

        public:
            CmdLineChartCurve2DPlotorRemoveAllGraphs();
            ~CmdLineChartCurve2DPlotorRemoveAllGraphs();

            bool execute() override;
            void undo() override;
            void redo() override;
            void setData(double data) {
                 m_data = data; 
            }

        private:
            double m_data{};
    };

} // namespace PostCommand

#endif
